﻿using System.Runtime.Serialization;

namespace Nectar.DAL.Common
{
    [DataContract]
    public class QueryParameter
    {
        private string paraName;
        private object paraValue;

        public QueryParameter()
        {
        }

        public QueryParameter(string name, object value)
        {
            this.Name = name;
            this.Value = value;
        }

        [DataMember]
        public string Name
        {
            get { return paraName; }
            set { paraName = value; }
        }
       
        [DataMember]
        public object Value
        {
            get { return paraValue; }
            set 
            {
                paraValue = value; 
            }
        }
    }
}